package com.wangfugui.mybatisplus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wangfugui.mybatisplus.domain.DailyPnl;

import java.util.Date;
import java.util.List;

public interface DailyPnlService extends IService<DailyPnl> {
    List<DailyPnl> notHolding(List<String> stockCodes, Date reportDate);
    List<DailyPnl> listByMonth(String stockCode, Date reportDate);
    List<DailyPnl> listByMonthHolding(String stockCode, Date reportDate);
//    List<DailyPnl> listByMonth(String stockCode, Date month,Date reportDate);
    List<DailyPnl> listByYear(String stockCode, Date reportDate);
//    List<DailyPnl> listByYear(String stockCode, Date year,Date reportDate);
//    List<DailyPnl> list(String stockCode);
    List<DailyPnl> list(String stockCode,Date reportDate);

//    DailyPnl listLastHoldingOne(String stockCode);
    DailyPnl listLastHoldingOne(String stockCode, Date date);

    void updateHolding(List<String> stockCode);
    void updateHolding(String stockCode);

}
